package com.example.analysis.mapper;

import com.example.analysis.dto.QuestScoreDto;
import com.example.analysis.dto.QuestScoreSupDto;
import com.example.analysis.dto.StudentPlatformScoreDto;
import com.example.analysis.entity.Course;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CourseDao {

    int deleteByPrimaryKey(String subId);

    int insert(Course record);

    int insertSelective(Course record);

    Course selectByPrimaryKey(String subId);

    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);

    Course selectByName(String courseName);

    List<Course> getAll();

    List<Course> getCourseData(String subId);

    List<QuestScoreDto> getQuestScore(String subId);

    List<QuestScoreSupDto> getQuestScoreSup(String subId);
}
